package cn.com.taiji.oospub.wechat.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.dreamyoung.mprelation.AutoLazy;
import com.github.dreamyoung.mprelation.EntityMapper;
import com.github.dreamyoung.mprelation.JoinColumn;
import com.github.dreamyoung.mprelation.ManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Calendar;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("CUSTOMER_OPINION")
@AutoLazy
public class CustomerOpinion implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @TableField(exist = false)
    private String ids;

    private String content;

    private Calendar createTime;

    private String schoolId;

    private String creatorId;

    @TableField(exist = false)
    @ManyToOne
    @EntityMapper
    @JoinColumn(name="creator_id",referencedColumnName = "ID")
    private MemberBaseInfo creator;

    private Boolean isReply;

    private String huifu;


}
